feat: Intent recognition: 1) The prompt template can be customized. 2) Output reason is configurable. 3) Show the system prompt in the execution detail.#4931
Conversation
|
Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
reason for Intent recognitionIntent recognition whether to output "reason" is configurable
Intent recognition whether to output "reason" is configurableIntent recognition whether to output reason is configurable
Intent recognition whether to output reason is configurableIntent recognition whether to output reason is configurable, and show the system prompt in the execution detail
Intent recognition whether to output reason is configurable, and show the system prompt in the execution detailIntent recognition whether to output reason is configurable. In addition, show the system prompt in the execution detail
Intent recognition whether to output reason is configurable. In addition, show the system prompt in the execution detailIntent recognition: 1) The prompt template can be customized. 2) Output reason is configurable. 3) Show the system prompt in the execution detail.
…ig-output-reason # Conflicts: # ui/src/workflow/nodes/ai-chat-node/index.vue
…ig-output-reason # Conflicts: # apps/application/flow/step_node/intent_node/i_intent_node.py # apps/application/flow/step_node/intent_node/impl/base_intent_node.py # ui/src/workflow/nodes/intent-classify-node/index.vue
|
Hi @wangliang181230, thanks for the contribution and the effort you put into this PR! After reviewing it, we've decided not to merge it for now. The intent recognition node is not in our current roadmap, and we'd like to keep the feature scope focused for the upcoming release. We'll keep this in mind for future iterations. Feel free to maintain it as a fork if you'd like to use it in the meantime. Thanks again! |
|
@zhanweizhang7 Any plans to merge this PR in the future? |
|
There are no plans to merge this in the foreseeable future, thanks for your understanding!
***@***.***> 在 2026年3月27日 周五 17:13 写道:
wangliang181230 left a comment (1Panel-dev/MaxKB#4931)
@zhanweizhang7 Any plans to merge this PR in the future?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.
|
|
@zhanweizhang7 |
|
Sorry, no plans for this either.
***@***.***> 在 2026年3月27日 周五 18:00 写道:
wangliang181230 left a comment (1Panel-dev/MaxKB#4931)
@zhanweizhang7 Can I submit another PR Output reason is configurable ?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.
|
What this PR does / why we need it?
Intent recognition:Output reasonis configurable.system promptin the execution detail.Summary of your change
在使用部分大模型时,默认的系统提示词有时候还是无法很好的判断连续对话的连贯性,我认为是提示词与大模型的兼容性不好,或者对于所选大模型来说不够完善。
现将
提示词模板做成可自定义,默认情况下填充原来的提示词模板。注:经测试此次调整向下兼容,可安全升级。
新特性:
意图识别节点的提示词模板可自定义配置了(默认值根据语言变更)。新特性:
意图识别节点,是否输出理由支持可配置化了;添加该功能的原因:在
生产环境下,可以配置不输出理由,能减少意图识别的耗时,还能稍微减少token消耗。一般在
开发、测试阶段才需要开启它来观察意图识别的理由。界面截图:

优化:

意图识别的执行详情中,展示系统提示词。界面截图:
Please indicate you've done the following: